package com.spring.circle;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
//肯定成功的
@Component
public class B {

	@Value("${b.name}")
	private String name;

	@Autowired
	private A a;

	public B(){
		System.out.println("B...构造....");
	}

	public void showA(){
		System.out.printf("B.showA");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public A getA() {
		return a;
	}

	public void setA(A a) {
		this.a = a;
	}
}
